abstraction
Class StateAction
java.lang.Object
abstraction.StateAction
public class StateAction
- extends java.lang.Object
This Class maintains informations about the pair present state and action
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
presentState
private State presentState
action
private Action action
StateAction
public StateAction(State presentState,
Action action)
- Constructor
- Parameters:
presentState - action -
getPresentState
public State getPresentState()
- Returns:
- present state of ActionState
getAction
public Action getAction()
- Returns:
- action of ActionState
setPresentState
protected void setPresentState(State presentState)
- set present state
- Parameters:
presentState - to set
setAction
protected void setAction(Action action)
- set action
- Parameters:
action - to set
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object